Skip to content

Refuse non-regular attention replay inputs without blocking - #951

Closed
Gajesh2007 wants to merge 3 commits into
masterfrom
fix/replay-nonblocking-inputs
Closed

Gajesh2007 wants to merge 3 commits into
masterfrom
fix/replay-nonblocking-inputs

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

The standalone replay CLI opens inputs before checking their file type. A FIFO supplied as the transfer or native buffer path therefore waits for a writer instead of reaching the existing regular-file refusal.

readBounded now opens with O_NONBLOCK alongside its existing read-only/no-follow/close-on-exec flags. The same descriptor is still checked for regular-file type, size and exact bytes. A host fixture supplies an owned FIFO without a writer; its failure recovery keeps a read/write descriptor open and joins the owned reader even if scheduling delayed its initial open. No operator, tensor math, allocation bound, hash, report schema or package pin changes.

Before

flowchart LR
  A[ReplayTransfer.load] --> B[readBounded opens input]
  B --> C[FIFO waits for writer]
  C -. cannot reach .-> D[fstat regular-file refusal]
Loading

After

flowchart LR
  A[ReplayTransfer.load] --> B[readBounded opens without blocking or following symlinks]
  B --> C[fstat rejects FIFO or other non-regular input]
  B --> D[Regular file retains exact size and byte checks]
  E[ReplayHostTests owned FIFO] --> C
Loading

Validation completed here: an owned Python/POSIX reproduction using the exact old flags times out before fstat; the new flags open immediately and identify the FIFO for refusal. The subprocess is killed/reaped by its timeout. The recovery descriptor also opens successfully on Darwin before any reader exists. Docs lint passes.

Root validation also completed at head 2b4be4e8831930edd719b150cbf1bfe214020092 on the dedicated M5: release build with tests passed in 131.97s, and all 5 ReplayHostTests passed with zero skips. The test executable and replay binary hashes stayed identical before/after the run. All 7 package files and 5,093 reviewed dependency/source files were verified; all 31 resolved dependency pins matched the existing provider lockfile. No operator or model tests were run.

The first wrapper rejected Swift's “5 tests in 1 suite” summary even though the tests passed. That failure is retained. A corrected summary parser and fresh guarded verification reran the same compiled host suite successfully (exit 0); no source or package pins changed. Replay binary SHA-256: 94cea11bdf321493444388f9639847b737d21171975878a5ea837d0d6a1f48c8.

@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 12, 2026 12:52am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 12, 2026 12:52am UTC
d-inference-landing Ready Ready Preview Sep 12, 2026 12:52am UTC

Request Review

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T00:55:44.594778Z 2b4be4e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 2b4be4e883

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Gajesh2007
Gajesh2007 marked this pull request as ready for review September 12, 2026 00:59
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head 2b4be4e8831930edd719b150cbf1bfe214020092 is preserved in aggregate 9d2160bb370e8a0dbf3810e61a5e48fe66345651, along with the relevant review fixes. Continue review and merge at #1096 (after provider #1094 and web #1095). Closing this duplicate merge path; the source branch and review history are retained.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — 2b4be4e8 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 2b4be4e8 Deployed Sep 12, 2026 by vercel[bot]
benchmarks — 2b4be4e8 Deployed Sep 12, 2026 by Gajesh2007 via E2E Benchmarks #1038
Preview – d-inference-landing — 2b4be4e8 Deployed Sep 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant